﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Runtime.CompilerServices;
using Microsoft.Scripting.Runtime;

namespace Cjc.ExpressionEngine.Excel.Runtime.Operations
{
	public static class StringOps
	{
		[ImplicitConversionMethod]
		public static Int32 ConvertToInt32( string x ) { return int.Parse( x ); }
		[ImplicitConversionMethod]
		public static Int64 ConvertToInt64( string x ) { return long.Parse( x ); }
		[ImplicitConversionMethod]
		public static double ConvertToDouble( string x ) { return double.Parse( x ); }
		[ImplicitConversionMethod]
		public static decimal ConvertToDecimal( string x ) { return decimal.Parse( x ); }

		[SpecialName]
		public static object Add( string x, string y ) { return x + y; }
	}
}